Skip to content

Fix LT-22267: Slow response in interlinear combos#445

Merged
jtmaxwell3 merged 3 commits into
release/9.3from
LT-22267
Aug 20, 2025
Merged

Fix LT-22267: Slow response in interlinear combos#445
jtmaxwell3 merged 3 commits into
release/9.3from
LT-22267

Conversation

@jtmaxwell3

@jtmaxwell3 jtmaxwell3 commented Aug 20, 2025

Copy link
Copy Markdown
Collaborator

This fixes a critical performance issue in the combo box. It was sometimes taking 4-14 seconds to show the menu of possible analyses. The problem was sorting the glosses. This was expensive because it happened once per analysis, and it required scanning all of the interlinear texts to get the context needed for the sort. If a word had 28 analyses, this was very expensive. I decided that it wasn't necessary to sort the glosses: sorting the analyses was enough.


This change is Reviewable

@jasonleenaylor jasonleenaylor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jasonleenaylor reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jtmaxwell3)


Src/LexText/Interlinear/ChooseAnalysisHandler.cs line 9 at r1 (raw file):

using System.Linq;
using System.Windows.Forms;
using Paratext.BibleInfo;

I'd check the using list, looks like some cruft snuck in.

@jasonleenaylor jasonleenaylor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

@jasonleenaylor reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jtmaxwell3)

@jtmaxwell3 jtmaxwell3 enabled auto-merge (squash) August 20, 2025 22:14
@jtmaxwell3 jtmaxwell3 merged commit c531282 into release/9.3 Aug 20, 2025
5 checks passed
@jtmaxwell3 jtmaxwell3 deleted the LT-22267 branch August 20, 2025 22:29
jasonleenaylor pushed a commit that referenced this pull request Sep 19, 2025
* Fix LT-22267: Slow response in interlinear combos

* Remove unused using
# cherry-picked from c531282
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants